import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store({
    state: {
        sessionId:'',
        count: 0,
        user:[],
        loginUser:[]
      },
      mutations: {
        setSessionId(state,session){
          state.sessionId=session
        },
        setUser(state,user){
          state.user=user
        },
        setLoginUser(state,loginUser){
          state.loginUser=loginUser
        },
        increment (state) {
          state.count++
        }
      }
})
export default store
